/**
 * Description:一些注释<br/>
 * CreateTime:2019-03-25<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
package cn.cnsy123.bookwebsiteserver.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Description:一些注释<br/>
 * CreateTime:2019-03-25<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
@Entity
@Table(name = "BOOK_BOOKSHELF_INFO")
public class SysBookShelfInfo {

    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    @Column(name = "BOOKSHELF_ID")
    private Long bookShelfId;
    
    @Column(name = "BOOKSHELF_NAME")
    private String bookShelfName;
    
    @Column(name = "ONLINE_FLAG")
    private Short onlineFlag;
    
    @Column(name = "UPPERSHELF_TIME")
    @Temporal(TemporalType.TIMESTAMP)
    private Date upperShelfTime;
    
    @Column(name = "LOWERSHELF_TIME")
    @Temporal(TemporalType.TIMESTAMP)
    private Date lowerShelfTime;
    
    @Column(name = "BOOKSHELF_POSITION")
    private String bookShelfPosition;

    public Long getBookShelfId() {
        return bookShelfId;
    }

    public void setBookShelfId(Long bookShelfId) {
        this.bookShelfId = bookShelfId;
    }

    public String getBookShelfName() {
        return bookShelfName;
    }

    public void setBookShelfName(String bookShelfName) {
        this.bookShelfName = bookShelfName;
    }

    public Short getOnlineFlag() {
        return onlineFlag;
    }

    public void setOnlineFlag(Short onlineFlag) {
        this.onlineFlag = onlineFlag;
    }

    public Date getUpperShelfTime() {
        return upperShelfTime;
    }

    public void setUpperShelfTime(Date upperShelfTime) {
        this.upperShelfTime = upperShelfTime;
    }

    public Date getLowerShelfTime() {
        return lowerShelfTime;
    }

    public void setLowerShelfTime(Date lowerShelfTime) {
        this.lowerShelfTime = lowerShelfTime;
    }

    public String getBookShelfPosition() {
        return bookShelfPosition;
    }

    public void setBookShelfPosition(String bookShelfPosition) {
        this.bookShelfPosition = bookShelfPosition;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("\"SysBookShelfInfo\":{\"bookShelfId\":");
        builder.append(bookShelfId);
        builder.append(", bookShelfName\":");
        builder.append(bookShelfName);
        builder.append(", onlineFlag\":");
        builder.append(onlineFlag);
        builder.append(", upperShelfTime\":");
        builder.append(upperShelfTime);
        builder.append(", lowerShelfTime\":");
        builder.append(lowerShelfTime);
        builder.append(", bookShelfPosition\":");
        builder.append(bookShelfPosition);
        builder.append("}");
        return builder.toString();
    }

   
    
    
}
